'use strict';

const axios = require('axios')

const BASE_URL = process.env.FS_CLI_BASE_URL || 'http://192.168.1.100:7625/'



const request = axios.create({
    baseURL: BASE_URL,
    timeout: 5 * 1000
})

request.interceptors.response.use(
    response => {
        return Promise.resolve(response.data)
    },
    error => {
        return Promise.reject(error)
    }
)

module.exports = request;